<ul class="unstyled li-search" id="resultAjax">
    <?php
    foreach ($this->patient as $patient) :

        $url = $this->url(array('controller' => 'patient', 'action' => 'edit', 'id' => $patient->id_patient));
        echo "<li><a href='" . $url . "'>" . $this->escape(ucwords($patient->nom . " " . $patient->prenom)) . "</a></li>";

    endforeach;
    ?>
</ul>